package org.colin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.colin.dictPojo.DEntryPhrase;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 词头 - 实例  Mapper 接口
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-18
 */
public interface DEntryPhraseMapper extends BaseMapper<DEntryPhrase> {

    boolean createEntryPhraseTable(@Param("tableName") String newEntryTableName);

    List<HashMap> selectAllPhraseByEntryId(@Param("tableName") String phraseTableName, @Param("id") Integer id);

    void deletePhraseByEntryId(@Param("tableName") String phraseTableName, @Param("id") Integer id);

    void addPhrase(@Param("tableName") String phraseTableName, @Param("entry") DEntryPhrase dEntryPhrase);
}
